import { ApiProperty } from '@nestjs/swagger';
import { v4 as uuidv4 } from 'uuid';
import { IsDateString, IsEmail, IsUUID } from 'class-validator';
export class CreateTokenDto {
  @ApiProperty({
    example: uuidv4(),
    description: 'website url you want',
  })
  @IsUUID()
  token: string;
  @ApiProperty({ example: 'john@gmail.com', description: 'email if user' })
  @IsEmail()
  email: string;
  @ApiProperty({ example: new Date(), description: 'expires date' })
  @IsDateString()
  expires: Date;
}
